availableTeamFor

  • function
 

Filters the [bitballs/components/tournament/details.ViewModel.prototype.teams teams] list to exclude teams that are already assigned to a Game.

details.availableTeamFor(name, round)

Filters the [bitballs/components/tournament/details.ViewModel.prototype.teams teams] list to exclude teams that are already assigned to a Game.

Parameters

  1. name {String}

    "home" or "away".

  2. round {String}

    A round name from roundNames.

Returns

{List | Array}

An array of Team models.